package cn.wp.ewallet.wmps.dao;

import cn.wp.common.core.model.WpPage;
import cn.wp.ewallet.wmps.model.entity.EarnDetailLogDo;
import cn.wp.ewallet.wmps.model.entity.EarnDetailLogDoo;

import java.util.List;

/**
 * 理财收益记录-数据访问层
 * Created by yangjin on 2020/1/9
 */
public interface EarnDetailLogDao {

    WpPage<EarnDetailLogDoo> selectEarnDetailLogList(int month, WpPage page,String earnStatus, String walletAddress);

    /**
     * 根据订单查看收益明细明细记录
     *
     * @param prodOrderId
     * @return
     */
    EarnDetailLogDo selectEarnDetailLogByProId(String prodOrderId);

    /**
     * 更新收益明细
     * @param earnDetailLogDo
     */
    void update(EarnDetailLogDo earnDetailLogDo);

    /**
     * 保存收益明细
     * @param earnDetailLogDo
     */
    void insert(EarnDetailLogDo earnDetailLogDo);

    /**
     * 根据订单id和类型查看收益明细
     * @param prodOrderId
     * @param returnStatusWatt
     * @return
     */
    List<EarnDetailLogDo> selectEarnDetailLogByProIdAndStatus(String prodOrderId, String returnStatusWatt);

    /**
     * 批量更新
     * @param earnDetailLogDos
     */

    void updateBabch(List<EarnDetailLogDo> earnDetailLogDos);
}
